
package org.springblade.common.constant;

/**
 * ERP的Redis常量
 *
 * @author Chill
 */
public interface ERPRedisConstant {

	//物料编码
	String MATERIAL_CODE_FORMAT = "ERP:MATERIAL:CODE:%s";
	//物料类型列表
	String MATERIAL_LIST_FORMAT = "ERP:MATERIAL:LIST:%s";
	String MATERIAL_LIST_PRODUCT = "ERP:MATERIAL:LIST:PRODUCT";

	//BOM 物料清单 TODO
	String BOM_PRODUCT_CODE_FORMAT = "ERP:BOM:PRODUCT:CODE:%s";
	String BOM_HALF_PRODUCT_CODE_FORMAT = "ERP:BOM:HALF_PRODUCT:CODE:%s";

	//物料工序对应
	String MATERIAL_PROCESS_CODE_FORMAT = "ERP:MATERIAL:PROCESS:CODE:%s";
	String MATERIAL_PROCESS_ID_FORMAT = "ERP:MATERIAL:PROCESS:ID:%s";

	//0.账户财务 - 月统计
	String FINANCE_SUBJECT_CODE_FORMAT_DATE_ML = "ERP:ML:FINANCE:SUBJECT:CODE:%s:%s";
	String FINANCE_SUBJECT_CODE_FORMAT_ML = "ERP:ML:FINANCE:SUBJECT:CODE:%s";

	//1.供应商
	String SUPPLY_CODE_FORMAT = "ERP:SUPPLY:CODE:%s";
	String SUPPLY_FINANCE_CODE_FORMAT = "ERP:SUPPLY:FINANCE:CODE:%s";

	//1.1客户
	String CUSTOMER_CODE_FORMAT = "ERP:CUSTOMER:CODE:%s";
	String CUSTOMER_FINANCE_CODE_FORMAT = "ERP:CUSTOMER:FINANCE:CODE:%s";


	//2.库管
	//物料总的库存
	String MATERIAL_INVENTORY_FORMAT = "ERP:MATERIAL:INVENTORY:CODE:%s";
	//物料仓库库存，单价
	String MATERIAL_WAREHOUSE_INVENTORY_PRICE_FORMAT = "ERP:MATERIAL:WAREHOUSE:PRICE:CODE:%s:%s";
	//物料仓库月结存 ,累加
	String MATERIAL_MOUTH_WAREHOUSE_INVENTORY_PRICE_FORMAT = "ERP:MATERIAL:MOUTH:WAREHOUSE:PRICE:CODE:%s:%s:%s";
	//物料类型-
	// 仓库价值
	String WAREHOUSE_TYPE_VALUE_FORMAT = "ERP:WAREHOUSE:TYPE:VALUE:CODE:%s";

	//3.生产方面 :
	String PRODUCTION_ORDER_CODE_FORMAT = "ERP:PRODUCTION:ORDER:%s";
	//生产订单的产品编码
	String PRODUCTION_ORDER_PRODUCT_CODE_FORMAT = "ERP:PRODUCTION:ORDER:PRODUCT:CODE:%s";
	String PRODUCTION_ORDER_LINE_CODE_FORMAT = "ERP:PRODUCTION:ORDER:%s:LINE:CODE:%s";

	//4.财务核算方面
	//4.1供应商
	//总价
	String FINANCE_SUPPLY_FEE_FORMAT = "ERP:FINANCE:SUPPLY:FEE:CODE:%s";
	//月总价
	String FINANCE_SUPPLY_MOUTH_FEE_FORMAT = "ERP:FINANCE:SUPPLY:MOUTH:FEE:CODE:%s:%s";
	//4.1客户
	//总价
	String FINANCE_CUSTOMER_FEE_FORMAT = "ERP:FINANCE:CUSTOMER:FEE:CODE:%s";
	//月总价
	String FINANCE_CUSTOMER_MOUTH_FEE_FORMAT = "ERP:FINANCE:CUSTOMER:MOUTH:FEE:CODE:%s:%s";
}
